package com.gxuwz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.core.util.SystemContext;
import com.gxuwz.dao.impl.SysRoleRightDao;
import com.gxuwz.pojo.SysRoleRight;
import com.gxuwz.pojo.SysRoleRight;
import com.gxuwz.service.ISysRoleRightService;

@Service("sysRoleRightService")
public class SysRoleRightServiceImpl implements ISysRoleRightService {

	@Autowired
	private SysRoleRightDao sysRoleRightDao;

	@Override
	public List<SysRoleRight> list(SysRoleRight entity) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.findByEntity(entity);
	}

	@Override
	public SysRoleRight save(SysRoleRight entity) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.save(entity);
	}

	@Override
	public void remove(SysRoleRight entity) {
		// TODO Auto-generated method stub
		sysRoleRightDao.remove(entity);
	}

	@Override
	public void update(SysRoleRight entity) {
		// TODO Auto-generated method stub
		sysRoleRightDao.update(entity);
	}

	@Override
	public List<SysRoleRight> findByHql(String queryString, Object[] params) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.findByHql(queryString, params);
	}

	@Override
	public List<SysRoleRight> findByExample(Object exampleEntity) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.findByExample(exampleEntity);
	}

	@Override
	public List<SysRoleRight> findByEntity(SysRoleRight entity) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.findByEntity(entity);
	}

	@Override
	public SysRoleRight findById(Integer id) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.find("form SysRoleRight where id="+id).get(0);
	}

	@Override
	public List<SysRoleRight> findByProperty(String property, String value) {
		// TODO Auto-generated method stub
		return sysRoleRightDao.findByProperty(property, value);
	}
	


}
